<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>鉴正智能管理系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', sans-serif;
            background: #f5f5f5;
            color: #333;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* 顶部导航栏 */
        .header {
            background: #2c3e50;
            color: white;
            padding: 15px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .logo {
            font-size: 24px;
            font-weight: bold;
        }

        .user-info {
            display: flex;
            align-items: center;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #3498db;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-right: 10px;
        }

        .user-name {
            font-weight: bold;
        }

        /* 主内容区 */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px;
        }

        .welcome-title {
            font-size: 36px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #2c3e50;
            text-align: center;
        }

        .welcome-subtitle {
            font-size: 20px;
            color: #7f8c8d;
            margin-bottom: 60px;
            text-align: center;
        }

        /* 功能入口区 */
        .entry-container {
            display: flex;
            flex-direction: column;
            gap: 30px;
            max-width: 1400px;
            margin: 0 auto;
            align-items: center;
        }

        .entry-row {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
        }

        .entry-row.first-row {
            width: 100%;
        }

        .entry-row.second-row {
            width: 100%;
            justify-content: flex-start;
        }

        /* 移除之前的grid相关样式 */
        .entry-item:nth-child(6),
        .entry-item:nth-child(7),
        .entry-item:nth-child(8),
        .entry-item:nth-child(9) {
            grid-column: unset;
        }

        .entry-item:nth-child(n+6) {
            margin-left: unset;
            margin-right: unset;
        }

        .entry-container::after {
            display: none;
        }

        .entry-item {
            width: 220px;
            height: 220px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            color: #333;
            position: relative;
            overflow: hidden;
        }

        .entry-item:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: #3498db;
            transform: translateY(-100%);
            transition: all 0.3s ease;
        }

        .entry-item:hover:before {
            transform: translateY(0);
        }

        .entry-item:hover {
            transform: translateY(-15px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .entry-icon {
            font-size: 60px;
            margin-bottom: 25px;
            color: #3498db;
            transition: all 0.3s ease;
        }

        .entry-item:hover .entry-icon {
            transform: scale(1.1);
        }

        .entry-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 12px;
        }

        .entry-desc {
            font-size: 14px;
            color: #7f8c8d;
            text-align: center;
            padding: 0 20px;
            line-height: 1.5;
        }

        /* 弹窗样式 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
            animation: fadeIn 0.3s;
        }

        @keyframes fadeIn {
            from {opacity: 0;}
            to {opacity: 1;}
        }

        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 0;
            border: none;
            border-radius: 15px;
            width: 80%;
            max-width: 900px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
            animation: slideIn 0.3s;
        }

        @keyframes slideIn {
            from {transform: translateY(-50px); opacity: 0;}
            to {transform: translateY(0); opacity: 1;}
        }

        .modal-header {
            padding: 25px 30px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 15px 15px 0 0;
        }

        .modal-title {
            font-size: 24px;
            font-weight: bold;
            margin: 0;
        }

        .close {
            color: white;
            font-size: 32px;
            font-weight: bold;
            cursor: pointer;
            border: none;
            background: none;
            transition: all 0.3s;
        }

        .close:hover {
            opacity: 0.7;
            transform: scale(1.1);
        }

        .modal-body {
            padding: 40px 30px;
        }

        .management-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
        }

        .management-item {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            padding: 30px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            color: #333;
            position: relative;
            overflow: hidden;
        }

        .management-item:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
            transform: translateY(100%);
            transition: all 0.3s ease;
        }

        .management-item:hover:before {
            transform: translateY(0);
        }

        .management-item:hover {
            border-color: #667eea;
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }

        .management-icon {
            font-size: 48px;
            margin-bottom: 15px;
            color: #667eea;
            position: relative;
            z-index: 1;
        }

        .management-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
        }

        .management-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.4;
            position: relative;
            z-index: 1;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .management-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .modal-content {
                width: 95%;
                margin: 10% auto;
            }
            
            .modal-body {
                padding: 30px 20px;
            }
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <div class="header">
        <div class="logo">鉴正智能软件管理系统</div>
        <div class="user-info">
            <div class="user-avatar">A</div>
            <div class="user-name">管理员</div>
        </div>
    </div>

    <!-- 主内容区 -->
    <div class="main-content">
        <h1 class="welcome-title">欢迎使用鉴正智能软件管理系统</h1>
        <p class="welcome-subtitle">高效、智能的文书管理平台，为您提供全方位的案件管理服务</p>

        <!-- 功能入口区 -->
        <div class="entry-container">
            <div class="entry-row first-row">
                <a href="AI新建委托.html" class="entry-item">
                    <div class="entry-icon">📝</div>
                    <div class="entry-title">新建委托</div>
                    <div class="entry-desc">创建新的委托案件</div>
                </a>
                <a href="AI新委托案件库.html" class="entry-item">
                    <div class="entry-icon">📋</div>
                    <div class="entry-title">新委托案件库</div>
                    <div class="entry-desc">查看和管理新委托的案件信息</div>
                </a>
                <a href="AI文书委托案件库-历史案件库.html" class="entry-item">
                    <div class="entry-icon">📚</div>
                    <div class="entry-title">历史案件库</div>
                    <div class="entry-desc">查询和检索历史案件记录</div>
                </a>
                <a href="#" class="entry-item" onclick="showManagementModal(event)">
                    <div class="entry-icon">🏢</div>
                    <div class="entry-title">鉴定所日常管理</div>
                    <div class="entry-desc">鉴定所日常运营管理和事务处理</div>
                </a>
                <a href="AI消息中心列表.html" class="entry-item">
                    <div class="entry-icon">📨</div>
                    <div class="entry-title">消息中心</div>
                    <div class="entry-desc">查看系统通知和待办事项</div>
                </a>
            </div>
            <div class="entry-row second-row">
                <a href="AI知识库.html" class="entry-item">
                    <div class="entry-icon">🧠</div>
                    <div class="entry-title">AI知识库</div>
                    <div class="entry-desc">查阅和管理AI知识库内容</div>
                </a>
                <a href="#" class="entry-item" onclick="showDevelopmentAlert(event, 'CRM模块')">
                    <div class="entry-icon">👥</div>
                    <div class="entry-title">CRM模块</div>
                    <div class="entry-desc">客户关系管理，维护客户信息和沟通记录</div>
                </a>
                <a href="#" class="entry-item" onclick="showDevelopmentAlert(event, '财务管理')">
                    <div class="entry-icon">💰</div>
                    <div class="entry-title">财务管理</div>
                    <div class="entry-desc">财务数据统计、账单管理和收支分析</div>
                </a>
                <a href="#" class="entry-item" onclick="showSystemModal(event)">
                    <div class="entry-icon">⚙️</div>
                    <div class="entry-title">系统管理</div>
                    <div class="entry-desc">管理系统设置、用户权限和基础配置</div>
                </a>
            </div>
        </div>
    </div>

    <script>
        // 显示功能开发中提示
        function showDevelopmentAlert(event, moduleName) {
            event.preventDefault();
            alert(`${moduleName}功能正在开发中，敬请期待！`);
        }

        // 显示日常管理弹窗
        function showManagementModal(event) {
            event.preventDefault();
            document.getElementById('managementModal').style.display = 'block';
        }

        // 关闭日常管理弹窗
        function closeManagementModal() {
            document.getElementById('managementModal').style.display = 'none';
        }

        // 显示系统管理弹窗
        function showSystemModal(event) {
            event.preventDefault();
            document.getElementById('systemModal').style.display = 'block';
        }

        // 关闭系统管理弹窗
        function closeSystemModal() {
            document.getElementById('systemModal').style.display = 'none';
        }

        // 点击弹窗外部关闭
        window.onclick = function(event) {
            const managementModal = document.getElementById('managementModal');
            const systemModal = document.getElementById('systemModal');
            
            if (event.target === managementModal) {
                closeManagementModal();
            }
            
            if (event.target === systemModal) {
                closeSystemModal();
            }
        }

        // 入口点击效果
        document.querySelectorAll('.entry-item').forEach(item => {
            item.addEventListener('click', function(e) {
                // 如果链接还没有实际页面，阻止默认行为并显示提示
                if (this.getAttribute('href') === '#' && !this.hasAttribute('onclick')) {
                    e.preventDefault();
                    alert('该功能正在开发中，敬请期待！');
                }
            });
        });
    </script>

    <!-- 鉴定所日常管理弹窗 -->
    <div id="managementModal" class="modal">
        <div class="modal-content">
            <div class="modal-header">
                <h2 class="modal-title">鉴定所日常管理</h2>
                <span class="close" onclick="closeManagementModal()">&times;</span>
            </div>
            <div class="modal-body">
                <div class="management-grid">
                    <a href="AI文书-日常管理-人员信息管理.html" class="management-item">
                        <div class="management-icon">👨‍💼</div>
                        <div class="management-title">人员信息管理</div>
                        <div class="management-desc">管理鉴定所人员档案、执业证书等信息</div>
                    </a>
                    <a href="AI文书-日常管理-设备管理.html" class="management-item">
                        <div class="management-icon">🔧</div>
                        <div class="management-title">设备信息管理</div>
                        <div class="management-desc">管理鉴定设备的采购、维护和使用记录</div>
                    </a>
                    <a href="AI文书-日常管理-邮寄管理.html" class="management-item">
                        <div class="management-icon">📦</div>
                        <div class="management-title">邮寄信息管理</div>
                        <div class="management-desc">管理案件相关文书和信函的邮寄记录</div>
                    </a>
                    <a href="AI文书-日常管理-减免费用管理.html" class="management-item">
                        <div class="management-icon">💰</div>
                        <div class="management-title">减免费用管理</div>
                        <div class="management-desc">管理案件费用减免的申请和审批记录</div>
                    </a>
                </div>
            </div>
        </div>
    </div>

    <!-- 系统管理弹窗 -->
    <div id="systemModal" class="modal">
        <div class="modal-content">
            <div class="modal-header">
                <h2 class="modal-title">系统管理</h2>
                <span class="close" onclick="closeSystemModal()">&times;</span>
            </div>
            <div class="modal-body">
                <div class="management-grid">
                    <a href="AI配置管理.html" class="management-item">
                        <div class="management-icon">⚙️</div>
                        <div class="management-title">配置管理</div>
                        <div class="management-desc">管理系统基础配置、参数设置和系统选项</div>
                    </a>
                    <a href="#" class="management-item">
                        <div class="management-icon">👤</div>
                        <div class="management-title">用户管理</div>
                        <div class="management-desc">管理系统用户账号、权限和个人信息</div>
                    </a>
                    <a href="#" class="management-item">
                        <div class="management-icon">🔐</div>
                        <div class="management-title">角色管理</div>
                        <div class="management-desc">管理系统角色、权限分配和功能授权</div>
                    </a>
                </div>
            </div>
        </div>
    </div>
</body>
</html>